@echo off
echo Installing dependencies for cloud functions...

cd cloudfunctions\cleanupAndResetTasks
call npm install --save wx-server-sdk@~2.6.3
cd ..\..

cd cloudfunctions\manageDorms
call npm install --save wx-server-sdk@~2.6.3
cd ..\..

cd cloudfunctions\saveCheck
call npm install --save wx-server-sdk@~2.6.3
cd ..\..

cd cloudfunctions\completeTask
call npm install --save wx-server-sdk@~2.6.3
cd ..\..

cd cloudfunctions\initDatabase
call npm install --save wx-server-sdk@~2.6.3
cd ..\..

cd cloudfunctions\generateQRCode
call npm install --save wx-server-sdk@~2.6.3
cd ..\..

cd cloudfunctions\createTask
call npm install --save wx-server-sdk@~2.6.3
cd ..\..

cd cloudfunctions\fixDormData
call npm install --save wx-server-sdk@~2.6.3
cd ..\..

echo All dependencies installed successfully! 